import requests
import hashlib
import time



url = "https://api.mocsgo.com/api/box/gf-detail?id=362"

# 时间戳
time_stamp = str(int(time.time()))

# 加密
sign_str = 'a8a4f6e4744b1559726f6e5bf8b58253{}'.format(time_stamp)
Token = hashlib.md5(sign_str.encode(encoding='utf-8')).hexdigest()

headers = {
   'Host': 'api.mocsgo.com',
   'Origin': 'https://mucsgo.com',
   'Referer': 'https://mucsgo.com/',
   'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.47',
   'Accept': '*/*',
   'Connection': 'keep-alive',
   'Timestamp': time_stamp,
   'Token': Token,
   'Authorization': 'Bearer undefined'
}

data = requests.get(url, headers=headers)

print(data.text)